<?php

class Rule_IntegerPositive extends Rule
{
	public $error_message="";
	
	function Check($hash)
	{
	    if (is_numeric($hash[$this->name]))
	    {
	        if (intval($hash[$this->name]))
	        {
	            return true;
	        }
	    }
		return false;
	}
}